package com.wechat.apidoc;

import com.wechat.utils.ActionResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import org.apache.catalina.servlet4preview.http.HttpServletRequest;

import java.math.BigDecimal;

/**
 *
 * @author cgc
 * @date 2018/4/2
 */
@Api(description = "支付相关接口")
public interface WxPayNoticeInterface {

    @ApiImplicitParams({
            @ApiImplicitParam(name = "key", value = "用户登录态", dataType = "String", paramType = "query", required = true),
            @ApiImplicitParam(name = "totalFee", value = "金额", dataType = "int", paramType = "query", required = true)
    })
    ActionResult unifiedOrder(String key, BigDecimal totalFee, HttpServletRequest request);


    @ApiImplicitParams({
            @ApiImplicitParam(name = "key", value = "用户登录态", dataType = "String", paramType = "query", required = true),
            @ApiImplicitParam(name = "amount", value = "金额", dataType = "int", paramType = "query", required = true)
    })
    ActionResult withdrawCash(String key, BigDecimal amount);
}
